package com.atguigu.order.feign;

import com.atguigu.servicebase.vo.CourseInfoForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("service-edu")
@Component
public interface EduFrontCourseFeignService {

    //根据课程id查询课程信息
    @GetMapping("/serviceedu/front/course/getDto/{courseId}")
    public CourseInfoForm getCourseInfoDto(@PathVariable String courseId);

    //根据课程Id获取教师名字
    @GetMapping("/serviceedu/front/course/getTeacherNameByCourseId/{courseId}")
    public String getTeacherNameByCourseId(@PathVariable String courseId);
}
